const Usecase = require('../../shared/usecase/Usecase')

class GetMenuDetail extends Usecase {
  constructor({ menuRepo }) {
    super()
    this.menuRepo = menuRepo
  }
  async execute(id) {
    const data = await this.menuRepo.findById(id)
    return data
  }
}

module.exports = GetMenuDetail
